#ifndef QQ_CENTRAL_STACKED_WIDGET
#define QQ_CENTRAL_STACKED_WIDGET

#include <qstackedwidget.h>
#include <qpainter.h>
#include <qpainterpath.h>

#include <ElaTheme.h>

class QQCentralStackedWidget : public QStackedWidget
{
	Q_OBJECT
public:
	explicit QQCentralStackedWidget(QWidget* parent = nullptr);
	~QQCentralStackedWidget();
	Q_SLOT void onThemeModeChanged(ElaThemeType::ThemeMode themeMode);

	void setIsTransparent(bool isTransparent);
	bool getIsTransparent() const;

	void setIsHasRadius(bool isHasRadius);

protected:
	virtual void paintEvent(QPaintEvent* event) override;

private:
	ElaThemeType::ThemeMode mThemeMode;
	bool mIsTransparent;
	bool mIsHasRadius;
};


#endif // !QQ_CENTRAL_STACKED_WIDGET
